<template>
	<view class="container">
		<view class="noticeBox">
			<view class="flex1 h76 f36 tac fwb">公告</view>
			<view class="flex flex-end flex-aic ">
				<view class="f30 c9">{{times}}</view>
			</view>
			<view class="content">{{content}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"",
		data() {
			return {
				content:"",
				times:""
			}
		},
		onLoad(o) {
			 this.times = o.times;
			 this.content = o.content;
			this.getList([o.id]);
		},

		methods: {
			getList(ids){
				let _this = this;
				_this.$utils.request({
					url:'/patient/message/',
					method:"PUT",
					data:{
						read_msg_ids:ids
					}
				}).then(res=>{
					this.detail = this.res.data
				})
			},
		}
	}
	
</script>

<style lang="scss" scoped>
	.container{
		background-color: #f1f1f1;
		padding: 30rpx;
		.noticeBox{
			width: 100%;
			height: auto;
			background-color: #fff;
			border-radius: 20rpx;
			padding: 20rpx;
		}
		.content{
			color: #666;
			margin-top: 20rpx;
		}
	}
</style>
